package com.csx.base.design.behavior.command;

/**
 * @author cuisongxu
 * @date 2022/10/12 11:35
 */
public class TVChannelUpCommand implements Command{

    private TV tv;

    public TVChannelUpCommand(TV tv) {
        this.tv = tv;
    }

    @Override
    public void exe() {
        tv.channelUp();
    }

    @Override
    public void unexe() {
        tv.channelDown();
    }
}
